From: Carlos Garnacho Date: Thu, 11 Aug 2022 23:36:59 +0000 (+0200) Subject: gdk/wayland: Drop motion hint mask from seat grab event masks X-Git-Tag: archive/raspbian/3.24.39-1+rpi1~1^2~65^2~3^2~56^2 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=2c65884a5e31afe3ea5f7983ec423c8e39c5e9f2;p=gtk%2B3.0.git gdk/wayland: Drop motion hint mask from seat grab event masks At best, it's just an awkward event mask sitting there for a backend that does not need it. At worst, this may result in motion events being eaten away in the right set of circumstances. Avoid the pointer motion hint mask, and rely on events being further than hints. Related: https://gitlab.gnome.org/GNOME/gimp/-/merge_requests/534#note_1526935 --- diff --git a/gdk/wayland/gdkdevice-wayland.c b/gdk/wayland/gdkdevice-wayland.c index 67bd322340..ed6ad3b138 100644 --- a/gdk/wayland/gdkdevice-wayland.c +++ b/gdk/wayland/gdkdevice-wayland.c @@ -4937,7 +4937,7 @@ gdk_wayland_seat_grab (GdkSeat *seat, native, GDK_OWNERSHIP_NONE, owner_events, - GDK_ALL_EVENTS_MASK, + GDK_ALL_EVENTS_MASK & ~GDK_POINTER_MOTION_HINT_MASK, _gdk_display_get_next_serial (display), evtime, FALSE); @@ -4959,7 +4959,7 @@ gdk_wayland_seat_grab (GdkSeat *seat, native, GDK_OWNERSHIP_NONE, owner_events, - GDK_ALL_EVENTS_MASK, + GDK_ALL_EVENTS_MASK & ~GDK_POINTER_MOTION_HINT_MASK, _gdk_display_get_next_serial (display), evtime, FALSE); @@ -4977,7 +4977,7 @@ gdk_wayland_seat_grab (GdkSeat *seat, native, GDK_OWNERSHIP_NONE, owner_events, - GDK_ALL_EVENTS_MASK, + GDK_ALL_EVENTS_MASK & ~GDK_POINTER_MOTION_HINT_MASK, _gdk_display_get_next_serial (display), evtime, FALSE); @@ -5003,7 +5003,7 @@ gdk_wayland_seat_grab (GdkSeat *seat, native, GDK_OWNERSHIP_NONE, owner_events, - GDK_ALL_EVENTS_MASK, + GDK_ALL_EVENTS_MASK & ~GDK_POINTER_MOTION_HINT_MASK, _gdk_display_get_next_serial (display), evtime, FALSE);